package com.usian.wemedia.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.model.admin.dtos.NewsAuthDto;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.*;
import com.usian.model.media.pojos.WmMaterial;
import com.usian.model.media.pojos.WmNews;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface MediaServiceUpload extends IService<WmMaterial> {
    //上传文件
    public ResponseResult upload(MultipartFile multipartFile);

    //查询内容
    public ResponseResult findpage(WmMaterialDto wmMaterialDto);

    //删除
    public ResponseResult del(Integer id);

    ResponseResult collect(Integer id, int i);

    //查询文章
    ResponseResult newsfindPage(WmNewsPageReqDto dto);

    //发布文章
    public ResponseResult submitnews(@RequestBody WmNewsDto wmNewsDto,Integer status);

    public WmNews findById(Integer id);

    public ResponseResult findNews(@RequestBody NewsAuthDto newsAuthDto);

    ResponseResult updateNews(WmNews wmNews);

    List<WmNews> findAll();

    ResponseResult one(Integer id);

    ResponseResult auth_pass(WmNewsAuthDto wmNewsAuthDto);

    ResponseResult down_or_up(WmNews wmNews);
}
